package zjitc.dao;

import org.apache.ibatis.annotations.Param;
import zjitc.po.User;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/12 16:51
 * @description:
 */
public interface UserMapper {

    List<User> findAllUser();

  int deleteUserByUid(@Param("uid") Integer id);

  User userLogin(@Param("username") String username, @Param("password") String password);

  User findByUsername(@Param("username") String username);

    int addUser(User user);

  User findByUid(int uid);
}
